"""
Copyright (c) 2024 [XKW.Beijing]
All rights reserved.

Author: [tangxiaojun]
Email: [417281862@qq.com]

"""
class ResponseDto:
    def __init__(self, code: int, data: str = "", message: str = "") -> None:
        self.code = code
        self.data = data
        self.message = message

    def to_dict(self) -> dict:
        return {
            "code": self.code,
            "data": self.data,
            "message": self.message,
        }
